//package com.practice.task;
//
//import cn.hutool.core.util.StrUtil;
//import lombok.extern.slf4j.Slf4j;
//import org.slf4j.Logger;
//import org.slf4j.LoggerFactory;
//import org.springframework.boot.ApplicationArguments;
//import org.springframework.boot.ApplicationRunner;
//import org.springframework.stereotype.Component;
//
///**
// * desc
// *
// * @author: kayn
// * 2025-04-04 20:09
// **/
//@Slf4j
//@Component
//public class TestRunner implements ApplicationRunner {
//
//    private static final Logger deviceLogger = LoggerFactory.getLogger("deviceLogger");
//
//    @Override
//    public void run(ApplicationArguments args) throws Exception {
//
//        try{
//
//            System.out.println(StrUtil.equals(Boolean.TRUE.toString(),"true"));
//
//            throw new RuntimeException("这是一个异常");
//
//        }catch (Exception e) {
//            log.error("发生异常了,异常信息为:{}",e.getMessage(),e);
//            deviceLogger.error("发生异常了,异常信息为:{}",e.getMessage(),e);
//        }
//
//    }
//}
